package demo;

import java.io.IOException;
import java.util.*;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.servlet.http.*;
import java.util.Calendar;
import com.google.gson.Gson;

@SuppressWarnings("serial")
public class CronServlet extends HttpServlet {
	private static final Logger log = Logger.getLogger(CronServlet.class
			.getName());

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		TrackDataAO cronjob = new TrackDataAO();
		//cronjob.delOneWeek();
		cronjob.DeleteData();
	}

	public void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {

		doGet(req, resp);
	}

}